package com.hl.sfzy.mapper.course;

import com.hl.sfzy.entity.course.Courseproblem;
import com.hl.sfzy.entity.course.CourseQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author fxy
* @description 针对表【courseProblem(课程问题表，存储用户对课程提出的问题)】的数据库操作Mapper
* @createDate 2024-09-10 17:08:15
* @Entity com.hl.sfzy.entity.course.Courseproblem
*/
@Mapper
@Repository
public interface CourseproblemMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Courseproblem record);

    int insertSelective(Courseproblem record);

    Courseproblem selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Courseproblem record);

    int updateByPrimaryKey(Courseproblem record);

    //课堂交流回答
    List<CourseQuestion> getCourseQuestions(@Param("courseId")Long courseId);

}
